import { nanoid } from 'nanoid'

export declare type ComponentV2rayRouter = {
    uuid: string
    type: string
    domain_or_ip_rule: string
    preset: boolean
}

export function new_component_v2ray_router(): ComponentV2rayRouter {
    return {
        uuid: nanoid(),
        type: 'domain',
        domain_or_ip_rule: '',
        preset: true,
    }
}
